<?php
namespace Goods;
class OrderController extends BaseController{
	public function index(){
		global $G,$lang;
		
		$goods_id = intval($_GET['goods_id']);
		$goods_number = intval($_GET['goods_number']);
		
		$goods = goods_get_data(array('id'=>$goods_id));
		$image = image_get_data(array('dataid'=>$goods_id, 'datatype'=>'goods'));
		$goods_price  = $goods['isdiscount'] ? $goods['discount_price'] : $goods['price'];
		$total_amount = $goods_price * $goods_number;
		
		include template('order');
	}
}